import request from '@/utils/request'

export function fetchUserRoleIds(userid) {
  return request({
    url: '/sys/user/role/roleIds/' + userid,
    method: 'get'
  })
}

export function insertByUserId(userid, roleIds) {
  return request({
    url: '/sys/user/role/insertByUserId/' + userid,
    method: 'post',
    data: roleIds
  })
}

export function deleteByUserId(userid, roleIds) {
  return request({
    url: '/sys/user/role/deleteByUserId/' + userid,
    method: 'delete',
    data: roleIds
  })
}

